﻿using System;
class BiggerInts
{
    static int GetMax(int intOne, int intTwo)
    {
        if (intOne > intTwo)
        {
            return intOne;
        }
        else
        {
            return intTwo;
        }
    }
    static int InputNumber()
    {
        while (true)
        {
            try
            {
                int number = int.Parse(Console.ReadLine());
                return number;
            }
            catch (Exception)
            {
                Console.Write("Please re-enter number: ");
            }
        }
    }
    static void Main()
    {
        int numberone = 0;
        int numbertwo = 0;
        int numberthree = 0;
        int biggestNumber = 0;
        Console.Write("Please enter first number: ");
        numberone = InputNumber();
        Console.Write("Please enter second number: ");
        numbertwo = InputNumber();
        Console.Write("Please enter third number: ");
        numberthree = InputNumber();
        biggestNumber = GetMax(numberone, numbertwo);
        Console.Write("the biggest number of {0}, {1} and {2} is: ", numberone, numbertwo, numberthree);
        Console.WriteLine(GetMax(biggestNumber, numberthree));
        Console.ReadLine();
    }
}

